# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname="texmaker"
pkgver=5.0.4
pkgrel=0
pkgdesc="Free cross-platform LaTeX editor since 2003"
url="https://www.xm1math.net/texmaker/index.html"
arch="all"
license="GPL"
depends="desktop-file-utils"
makedepends="qt5-qttools-dev qt5-qtbase-dev qt5-qtscript-dev poppler-qt5"
source="https://www.xm1math.net/texmaker/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	qmake-qt5 PREFIX=/usr texmaker.pro
	make
}

check() {
	make check
}

package() {
	mkdir -p "$pkgdir/usr/share"
	make INSTALL_PATH="$pkgdir" INSTALL_ROOT="$pkgdir" PREFIX="/usr" install
}

sha512sums="34ff5773358c2fffbc9e7e61028cd74eef231152e3483531b66cb0d907dd8f70a4e8b6d6ea09b0b11387b592f6d1676ba8a1e737b26c86a45b16882e53edff1f  texmaker-5.0.4.tar.bz2"
